package com.tyust.bean;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "user")  //对应mongodb中的集合名称
public class User {

	@Id
	private String id;
	
	private String name;
	private String name1;
	
	private Integer age;
	
	private Date birthday;
	
	private String gj;
	private String jx;
	private String sfzh;
	private String sex;
	
	
	public User(){
		
	}


	public User(String name, Integer age, Date birthday, String gj, String jx, String sfzh, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.birthday = birthday;
		this.gj = gj;
		this.jx = jx;
		this.sfzh = sfzh;
		this.sex = sex;
	}


	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", birthday=" + birthday + ", gj=" + gj + ", jx="
				+ jx + ", sfzh=" + sfzh + ", sex=" + sex + ", name1=" + name1 + "]";
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Integer getAge() {
		return age;
	}


	public void setAge(Integer age) {
		this.age = age;
	}


	public Date getBirthday() {
		return birthday;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}


	public String getGj() {
		return gj;
	}


	public void setGj(String gj) {
		this.gj = gj;
	}


	public String getJx() {
		return jx;
	}


	public void setJx(String jx) {
		this.jx = jx;
	}


	public String getSfzh() {
		return sfzh;
	}


	public void setSfzh(String sfzh) {
		this.sfzh = sfzh;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getName1() {
		return name1;
	}


	public void setName1(String name1) {
		this.name1 = name1;
	}

	
	
}
